<% if project.enabled == TRUE
      enabled = "激活"
   else
      enabled = "锁定"
      end
%>
<tr>
  <td><%= project.id %></td>
  <td><%= project.name %></td>
  <td><%= project.code %></td>
  <td><%= enabled %></td>
  <td><%= project.description %></td>
  <td><%= link_to 'Edit', :action => 'edit', :id => project %></td>
  <td><%= button_to 'Delete', { :action => 'destroy', :id => project, :confirm => "Are you sure you want to delete setting #{project.name}?"}, :method => :delete %></td> 
</tr>  
